#define _GNU_SOURCE
#include <dlfcn.h>
#include <string.h>
#include <stdio.h>

void *dlopen (char const *Fnm, int Flg)
{
    void *(*real_dlopen) (char const *, int);
    *(void**)(&real_dlopen) = dlsym(RTLD_NEXT, "dlopen");
    if (strcmp("libGL.so.1", Fnm) == 0) {
        return NULL;
    } else {
        return real_dlopen(Fnm, Flg);  
    }
}
